import { defineConfig } from "vite"
import uni from "@dcloudio/vite-plugin-uni";
 
export default defineConfig({
	plugins: [
		uni()
	],
	server: {
		proxy: {
			'/api': {
				// https://ktalkapi.qiaonongrenzf.cn
				rewrite: path => path.replace(/^\/api/, ''),
				logLevel: 'debug',
				// target: 'https://ktalkapi.qiaonongrenzf.cn', // 测试
				target: 'https://ktalkapimap.chainaibit.com', // 正式
				// target: 'http://192.168.1.25:8888', // 米
				changeOrigin: true
			},
			
		},
		hmr: true
	}
})